import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationSafeMenuType implements ChoiceBean {
  StandardizationSafeMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final labor = StandardizationSafeMenuType('劳保用品');
  static final record = StandardizationSafeMenuType('安全记录检查');
  static final protocol = StandardizationSafeMenuType('作业管理协议');
  static final mgmt = StandardizationSafeMenuType('班组安全活动管理制度');
  static final thirdSafeSystemManagement = StandardizationSafeMenuType('三方安全管理制度');
  static final thirdSafeSystemAgreement = StandardizationSafeMenuType('三方安全管理协议');
  static final qualificationReviewRecords = StandardizationSafeMenuType('三方资质审查记录');
  static final thirdJobProcessInspection = StandardizationSafeMenuType('三方作业过程检查');
  static final thirdPerformanceEvaluation = StandardizationSafeMenuType('三方绩效评估');
  static final thirdContinuationExitRecord = StandardizationSafeMenuType('三方续用退出记录');
  static List<StandardizationSafeMenuType> get all => [
        labor,
        //record,
        protocol,
        mgmt,
        thirdSafeSystemManagement,
        thirdSafeSystemAgreement,
        qualificationReviewRecords,
        thirdJobProcessInspection,
        thirdPerformanceEvaluation,
        thirdContinuationExitRecord,
      ];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '劳保用品':
        return '/standard//labor/getLabourProtectionAppliancePage';
      case '安全记录检查':
        return '/standard//workBehavior/getJobBehaviorInspectionPage';
      case '作业管理协议':
        return '/standard//cultureConstruction/getManagementProtocolPage';
      case '班组安全活动管理制度':
        return '/standard//teamSafety/getSafeManagementSystemPage';
      case '三方安全管理制度':
        return '/standard//securitySystem/getThirdSafeSystemManagementPage';
      case '三方安全管理协议':
        return '/standard//securityAgreement/getThirdSafeSystemAgreementPage';
      case '三方资质审查记录':
        return '/standard//securityRecords/getQualificationReviewRecordsPage';
      case '三方作业过程检查':
        return '/standard//LedgerInspection/getLedgerInspectionPage';
      case '三方绩效评估':
        return '/standard//PerformanceEvaluation/getPerformanceEvaluationPage';
      case '三方续用退出记录':
        return '/standard//ContinuationExitRecord/getContinuationExitRecordPage';
      default:
        return '';
    }
  }
}
